﻿using CommunityToolkit.Mvvm.ComponentModel;
using MG.SmartHMI.Model.Common.Enum;

namespace MG.SmartHMI.Model.VO
{
    public partial class MessageStateConfigVO : ObservableRecipient
    {
        public int Id { get; set; }

        public DateTime UpdateTime { get => DateTime.Now; }

        [ObservableProperty]
        private string name;

        [ObservableProperty]
        private int stateCode;

        [ObservableProperty]
        private string message;

        public EnumMessageLevel MessageLevel { get => (EnumMessageLevel)Level; set => Level = (int)value; }

        [ObservableProperty]
        private int level;
    }
}